var ExamProblem={
GetExam:function(ProblemId,ExamId,IsExam,ViewId)
	{
	this.ProblemId=ProblemId;
	if(ExamId)	this.Set(ExamId,IsExam,ViewId);
	else	LoadAjax.Get(fastCSharp.ThisFunction(this,this.OnGetExam,[ProblemId]),'/include/examProblem.html',{problemId:ProblemId});
	},
OnGetExam:function(Value,ProblemId)
	{
	if(this.ProblemId==ProblemId)
		{
		fastCSharp.Skins.examProblem.Show(Value);
		fastCSharp.FloatCenters.examProblem.Show();
		}
	},
Hide:function()
	{
	fastCSharp.FloatCenters.examProblem.Hide();
	},
Set:function(ExamId,IsExam,ViewId)
	{
	LoadAjax.Post(fastCSharp.ThisFunction(this,this.OnSet,[fastCSharp.ViewObjects[ViewId],IsExam?-1:1]),IsExam?'enterprise.exam.DeleteProblem':'enterprise.exam.AppendProblem',{examId:ExamId,problemId:this.ProblemId});
	},
OnSet:function(Value,View,Count)
	{
	if(Value.__AJAXRETURN__)	(View.IsExam||View.SkinTarget.IsExam).Set(Count>0);
	}
		};